package com.young.ysepay.controllers;

import com.young.ysepay.service.YsAsyncPaymentService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * @Author: WANGNING
 * @Email wyn20140226@aliyun.com
 * @Date: 2019/6/5 8:42
 * @Des 银盛打款异步返回
 */
@RestController
@RequestMapping("/ysAsyncPayment")
public class YsAsyncPaymentController {
    private static Logger log = LoggerFactory.getLogger(YsController.class);
    @Autowired
    YsAsyncPaymentService ysAsyncPaymentService;
    /**
     * @Author zhaopengjun
     * @Description //银盛异步代打款回执接口（一清）
     * @Date 15:12 2019/5/22
     * @Param [returnString]
     * @return java.lang.String
     **/
    @PostMapping("/asyncPayment")
    public void asyncPayment(Map<String,String> paramMap,HttpServletResponse response){
        ysAsyncPaymentService.asyncPayment(paramMap,response);

    }

}
